import baseApi from '@/config/server/api/base'

function create(data) {
  return baseApi.info.create.fetch(data)
}

function list(data) {
  return baseApi.article.articleList.fetch(data)
}

function auditFirst(data) {
  return baseApi.info.audit.first.fetch(data)
}

function auditSecond(data) {
  return baseApi.info.audit.second.fetch(data)
}

function auditLog(articleId) {
  return baseApi.info.audit.log.fetch({
    articleId
  })
}

export default {
  create,
  list,
  auditFirst,
  auditSecond,
  auditLog
}